<template>
  <header class="header">
    {{userName}}
  </header>
</template>
<script lang="ts">
import { Vue, Component } from 'vue-property-decorator'
import { Getter } from 'vuex-class'

@Component
export default class AppHeader extends Vue {
  @Getter('userName') public userName!: string
}
</script>
<style lang="scss" scoped>
  .header {
    width: 100%;
    background-color: #005792;
    color: #ffffff;
    font-size: 18px;
    line-height: 36px;
  }
</style>
